-- GENERATED SPELL FOR [Helboar] --


function spell0_5993(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11970,pUnit)
pUnit:RegisterEvent('Sorts_5993', 2000, 1)
end

function spell1_5993(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_5993', 3000, 1)
end

function Sorts_5993(pUnit, Event)
local choix_sorts_5993 = math.random(0, 1)
if choix_sorts_5993 == 0 then
pUnit:RegisterEvent('spell0_5993', 1, 1)
end
if choix_sorts_5993 == 1 then
pUnit:RegisterEvent('spell1_5993', 1, 1)
end
end

function mob5993_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5993', math.random(1500, 3000), 1)
end

function mob5993_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5993_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5993_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5993, 1, 'mob5993_Action')
RegisterUnitEvent(5993, 2, 'mob5993_Leave')
RegisterUnitEvent(5993, 3, 'mob5993_Kill')
RegisterUnitEvent(5993, 4, 'mob5993_Die')
